//! Message batch types.

use aspect_msgqueue::Msg;

/// A batch of messages that were fetched together.
#[derive(Clone, Debug)]
pub struct MsgFetchBatch {
    messages: Vec<FetchEntry>,
}

/// An entry in a fetch batch.
#[derive(Clone, Debug)]
pub struct FetchEntry {
    idx: u64,
    msg: Msg,
}

/// A batch of messages submitted together.  These don't have an ordering yet.
pub struct MsgSubmitBatch {
    messages: Vec<Msg>,
}
